﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FAQ_list.aspx.cs" Inherits="admin_allergy_doctor_FAQ_list" %>

<!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
    <title>Lomboz aspx</title>
    <meta http-equiv="Cache-Control" content="no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <link href="../../css/default.css" rel="stylesheet" type="text/css" />

    <script src="../../js/jUtility.js" type="text/javascript"></script>

    <script type="text/javascript">
        function deldata() {
            var s;
            var url;
            s = '该操作不能恢复,是否确认?';

            if (!isChecked(pageform.ids)) {
                alert("请选择要删除的信息!");
                return false;
            }
            if (confirm(s)) {
                return true;
            }
            return false;
        }

        function pubdata() {
            if (!isChecked(pageform.ids)) {
                alert("请选择要发布的信息!");
                return false;
            }
            return true;
        }
        function searchdata() {
            pageform.submit();
            return false;
        }

    </script>

</head>
<body>
    <form id="pageform" runat="server" method="post">
    <table width="100%" height="600" border="0" align="left" cellpadding="0" cellspacing="0"
        bgcolor="#FFFFFF">
        <tr>
            <td height="414" align="left" valign="top" class="rightbg">
                <table width="100%" height="489" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="26">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td height="2" bgcolor="#A49B81">
                                    </td>
                                </tr>
                                <tr>
                                    <td height="22" background="../../images/position_bg.gif" bgcolor="#EEF6FE" class="subnav"
                                        style="background-repeat: repeat-y; background-position: left; padding-left: 6px;">
                                        <asp:Label ID="headers" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td height="1" bgcolor="#B0C9E8">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="16">
                        </td>
                    </tr>
                    <tr>
                        <td height="21">
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td width="25">
                                        &nbsp;
                                    </td>
                                    <td width="100" align="left">
                                        <table width="80" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="3">
                                                    <img src="../../images/btn_blue_left.gif" width="3" height="21" />
                                                </td>
                                                <td width="26" align="center" background="../../images/btn_blue_center.jpg">
                                                    <img src="../../images/icon_add.gif" width="16" height="14" />
                                                </td>
                                                <td align="left" background="../../images/btn_blue_center.jpg" class="subnav">
                                                    <asp:LinkButton runat="server" ID="add" OnClick="Add_click">新 增</asp:LinkButton>
                                                </td>
                                                <td width="3">
                                                    <img src="../../images/btn_blue_right.jpg" width="3" height="21" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                   
                                    
                                    <%--	<td width="100" runat="server" id="pubtd">
			<table width="80" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="3"><img src="../images/btn_blue_left.gif" width="3" height="21" /></td>
                  <td width="26" align="center" background="../images/btn_blue_center.jpg"><img src="../images/icon_channel.gif" width="12" height="12" /></td>
                  <td align="left" background="../images/btn_blue_center.jpg" class="subnav">
                  <asp:LinkButton runat="server" ID="pub" OnClick="Pub_click" OnClientClick="return pubdata();">发 布</asp:LinkButton>
                  </td>
                  <td width="3"><img src="../images/btn_blue_right.jpg" width="3" height="21" /></td>
                </tr>
              </table>	
	</td>
--%>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="16">
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign="top" style="padding-left: 10px;">
                            <table width="95%" height="74" border="1" align="center" cellpadding="0" cellspacing="0"
                                bordercolorlight="#2583BC" bordercolordark="#ffffff" bgcolor="#B3CFEC">
                                <tr>
                                    <td width="100%" valign="top">
                                        <table width="95%" height="75" border="0" align="center" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td height="29" align="center" valign="middle">
                                                    <table width="98%" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="#C0D8EF">
                                                        <tr>
                                                            <td align="center" valign="middle">
                                                                
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="16">
                        </td>
                    </tr>
                    <tr>
                        <td height="310" align="center" valign="top" style="padding-left: 10px;">
                            <table width="95%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#2583BC"
                                bordercolordark="#ffffff">
                                <tr>
                                    <td width="100%" height="300" valign="top">
                                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
                                BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="0" GridLines="None"
                                HeaderStyle-VerticalAlign="NotSet" HeaderStyle-HorizontalAlign="Center" PagerStyle-HorizontalAlign="Center"
                                RowStyle-HorizontalAlign="NotSet" PagerStyle-VerticalAlign="Middle" PagerStyle-Width="97%"
                                Width="97%" AllowSorting="True" AllowPaging="True">
                                <Columns>
                                    <asp:TemplateField HeaderText="全选">
                                        <HeaderTemplate>
                                            全选
                                            <input name="allbox" id="allbox" type="checkbox" onclick="CA()" />
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:CheckBox ID="DeleteThis" runat="server" />
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8%" />
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle CssClass="greytd" />
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="id" HeaderText="ID">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8%" />
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle CssClass="greytd" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="doctorName" HeaderText="回答医生">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" />
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle CssClass="greytd" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="问题类型">
                                        <HeaderTemplate>
                                            问题类型</HeaderTemplate>
                                        <ItemTemplate>
                                            <%#Eval("type").ToString() == "1" ? "类别1" : Eval("type").ToString() == "2" ? "类别2" : Eval("type").ToString() == "3" ? "类别3" :"类别4"%>
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" />
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle CssClass="greytd" />
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="title" HeaderText="问题标题">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" />
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle CssClass="greytd" />
                                    </asp:BoundField>
                                    <%--<asp:BoundField DataField="FAQ_ANSWER" HeaderText="问题答案">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" />
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle CssClass="greytd" />
                                    </asp:BoundField>--%>
                                    <asp:BoundField DataField="creattime" HeaderText="添加时间">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" />
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle CssClass="greytd" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="modtime" HeaderText="回答时间">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" />
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle CssClass="greytd" />
                                    </asp:BoundField>
                                    <%--<asp:BoundField DataField="USER_ID" HeaderText="添加人ID">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" />
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle CssClass="greytd" />
                                    </asp:BoundField>--%>
                                    <asp:TemplateField HeaderText="发布状态">
                                        <ItemTemplate>
                                            <%-- <asp:Label ID="state" runat="server" Text='<%#Bind("STATE") %>'></asp:Label> --%>
                                            <%--<label id="sta" runat="server"  ><%#Eval("STATE") %></label> --%>
                                            <label id="sta" runat="server">
                                                <%#Eval("status").ToString()=="0"?"不发布":"发布" %></label>
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" />
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle CssClass="greytd" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="管理">
                                        <HeaderTemplate>
                                            管理
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:LinkButton ID="mod" runat="server" OnClick="Mod_click" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "id") %>'>修改</asp:LinkButton>
                                            <asp:LinkButton ID="del" runat="server" OnClick="Delone_click" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "id") %>'
                                                OnClientClick="return confirm('此操作不能恢复,您确定删除吗?');">删除</asp:LinkButton>
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" />
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle CssClass="greytd" />
                                    </asp:TemplateField>
                                </Columns>

<HeaderStyle HorizontalAlign="Center"></HeaderStyle>

                                            <PagerSettings Visible="False" />

<PagerStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="97%"></PagerStyle>
                            </asp:GridView>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <!--分页开始-->
                <asp:Label ID="pagehtml" runat="server" />
                <!--分页结束-->
            </td>
        </tr>
    </table>
    </form>
    <div style="display: none">
    </div>
</body>
</html>